<?php /* Smarty version 2.6.14, created on 2014-11-21 17:45:49
         compiled from datadau.show.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'datadau.show.html', 12, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<link rel="stylesheet" type="text/css" href="<?php echo @BASEURI; ?>
public/css/ui.datepicker.css"/>
<script language="javascript" src="<?php echo @BASEURI; ?>
public/js/ui.datetimepicker.js"></script>
<table border="0" class="search" cellspacing="0" id="search">
    <tr>
        <td>&nbsp;</td>
        <td>
            <?php echo $this->_tpl_vars['systemLang']['selectGame']; ?>
:
            <select name="s[game_id]" onchange="gameChange(this.value)" id="s_game_id">
                <option value=''><?php echo $this->_tpl_vars['systemLang']['choose']; ?>
</option>
                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['games'],'selected' => $this->_tpl_vars['search']['game_id']), $this);?>

            </select>&nbsp;&nbsp;|
            <?php echo $this->_tpl_vars['systemLang']['selectTime']; ?>
:
            <input class="text" style="width:120px" type="text" name="s[date]" id="cctime_s" readonly value="<?php echo $this->_tpl_vars['search']['date']; ?>
"/>&nbsp;&nbsp;

            <input type="submit" name="submit" value="<?php echo $this->_tpl_vars['systemLang']['submit']; ?>
" class="button" />
        </td>
    </tr>
</table>
<table width="100%" border="0" class="adminlist" cellspacing="0">
    <thead>
    <tr>
        <?php if ($this->_tpl_vars['showtype'] == 'date'): ?>
        <th><?php echo $this->_tpl_vars['systemLang']['date']; ?>
</th>
        <?php else: ?>
        <th><?php echo $this->_tpl_vars['systemLang']['gameName']; ?>
</th>
        <?php endif; ?>
        <th><?php echo $this->_tpl_vars['systemLang']['userTotle']; ?>
 <img src="/public/images/help-16.png" title="查询日期有过登录的用户数量"></th>
        <th><?php echo $this->_tpl_vars['systemLang']['dauOneDay']; ?>
 <img src="/public/images/help-16.png" title="查询日期有过登录的用户数量"></th>
        <th><?php echo $this->_tpl_vars['systemLang']['dauThreeDay']; ?>
 <img src="/public/images/help-16.png" title="查询日期前三日内有过两天登录的用户数"></th>
        <th><?php echo $this->_tpl_vars['systemLang']['dauFiveDay']; ?>
 <img src="/public/images/help-16.png" title="查询日期前五日内有过三天登录的用户数"></th>
        <th><?php echo $this->_tpl_vars['systemLang']['dauSevenDay']; ?>
 <img src="/public/images/help-16.png" title="查询日期前七日内有过四天登录的用户数"></th>
    </tr>
    </thead>
    <tbody>
    <?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['info']):
?>
    <tr class="row0">
        <?php if ($this->_tpl_vars['showtype'] == 'date'): ?>
        <td><?php echo $this->_tpl_vars['info']['date']; ?>
</td>
        <?php else: ?>
        <td><?php echo $this->_tpl_vars['games'][$this->_tpl_vars['info']['gameId']]; ?>
</td>
        <?php endif; ?>
        <td><?php echo $this->_tpl_vars['info']['userTotle']; ?>
</td>
        <td><?php echo $this->_tpl_vars['info']['dauOneDay']; ?>
</td>
        <td><?php echo $this->_tpl_vars['info']['dauThreeDay']; ?>
</td>
        <td><?php echo $this->_tpl_vars['info']['dauFiveDay']; ?>
</td>
        <td><?php echo $this->_tpl_vars['info']['dauSevenDay']; ?>
</td>
    </tr>
    <?php endforeach; endif; unset($_from); ?>
    </tbody>
    <tfoot>
    <tr>
        <?php if ($this->_tpl_vars['totle']): ?>
        <td><span style="color:#f86300">全部游戏</span></td>
        <td><?php echo $this->_tpl_vars['resultTot']['userTotle']; ?>
</td>
        <td><?php echo $this->_tpl_vars['resultTot']['dauOneDay']; ?>
</td>
        <td><?php echo $this->_tpl_vars['resultTot']['dauThreeDay']; ?>
</td>
        <td><?php echo $this->_tpl_vars['resultTot']['dauFiveDay']; ?>
</td>
        <td><?php echo $this->_tpl_vars['resultTot']['dauSevenDay']; ?>
</td>
        <?php else: ?>
        <td colspan="10" style="text-align:center"><?php echo $this->_tpl_vars['page']; ?>
</td>
        <?php endif; ?>
    </tr>
    </tfoot>
</table><!--
<br/>
<br/>
<table width="100%" border="0" class="adminlistmark" cellspacing="0">
    <thead>
        <tr><th>名词解释</th></tr>
    </thead>
    <tbody>
        <tr><th>总用户量：截止查询日期内游戏的用户总量</th></tr>
        <tr><th>日&nbsp;&nbsp;&nbsp;&nbsp;活：查询日期有过登录的用户数量</th></tr>
        <tr><th>三日活跃：查询日期前三日内有过两天登录的用户数</th></tr>
        <tr><th>五日活跃：查询日期前五日内有过三天登录的用户数</th></tr>
        <tr><th>七日活跃：查询日期前七日内有过四天登录的用户数</th></tr>
    </tbody>
</table> -->
</form>
<script language="javascript">
    $('#cctime_s').datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"",maxDate:"+1d"});

    $(function() {
        x = 6;
        y = 18;
        $("img").hover(function(e) {
            otitle = this.title;
            this.title = "";
            var ndiv = "<div id='leo'>" + otitle + "</div>";
            $("body").append(ndiv);
            $("#leo").css({
                "top" : (e.pageY + y) + "px",
                "left" : (e.pageX + x) + "px"
            }).show(2000);
            $(this).mousemove(function(e) {
                $("#leo").css({
                    "top" : (e.pageY + y) + "px",
                    "left" : (e.pageX + x) + "px"
                }).show(1000);
            });
        }, function() {
            this.title = otitle;
            $("#leo").remove();
        });
    });

</script>
<style type="text/css">
    #leo {
        position: absolute;
        border: 3px solid #B0CEFF;
        opacity: 0.8;
        background: #B0CEFF;
    }
</style>